//
// Created by fengjl on 2017/4/28.
//
#include "../preinclude/nativecalc.h"

extern "C"
int native_calc_add(int a,int b ){
    return a + b;
}


extern "C"
int native_calc_sub(int a,int b ){
    return a - b;

}

extern "C"
int native_calc_mult(int a,int b ){
    return  a * b;
}

extern "C"
int native_calc_divid(int a,int b ){
    if(b == 0){
        return  0;
    } else{
        return a / b;
    }
}
